﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.Serialization;
using System.Web.Script.Serialization;
using System.Xml.Serialization;

namespace Datav.Design.Datas.Pocos;

/// <summary>用户帐号</summary>
public partial class ProjectUserModel
{
    #region 属性
    /// <summary>编号</summary>
    public Int64 Id { get; set; }

    /// <summary>手机号</summary>
    public String MobilePhone { get; set; }

    /// <summary>密码</summary>
    public String Password { get; set; }

    /// <summary>昵称</summary>
    public String NikeName { get; set; }

    /// <summary>真实姓名</summary>
    public String RealName { get; set; }

    /// <summary>秘钥</summary>
    public String PasswordSalt { get; set; }

    /// <summary>用户类型：1学生7普通用户</summary>
    public Int32 UserType { get; set; }

    /// <summary>状态</summary>
    public Int32 Status { get; set; }

    /// <summary>岗位名称</summary>
    public String PositionName { get; set; }

    /// <summary>案例Id</summary>
    public Int64 ProjectId { get; set; }

    /// <summary>详细描述</summary>
    public String Description { get; set; }

    /// <summary>客户端id</summary>
    public String ClientId { get; set; }

    /// <summary>创建人</summary>
    public Int64 CreateBy { get; set; }

    /// <summary>修改人</summary>
    public Int64 UpdateBy { get; set; }

    /// <summary>是否删除0未删除1删除</summary>
    public Int32 IsDelete { get; set; }

    /// <summary>创建时间</summary>
    public DateTime CreateTime { get; set; }

    /// <summary>更新时间</summary>
    public DateTime UpdateTime { get; set; }

    /// <summary>租户id</summary>
    public Int64 TenantId { get; set; }

    /// <summary>激活时间</summary>
    public DateTime ActivationTime { get; set; }

    /// <summary>学校名称</summary>
    public String SchoolName { get; set; }
    #endregion

    #region 拷贝
    /// <summary>拷贝模型对象</summary>
    /// <param name="model">模型</param>
    public void Copy(IProjectUser model)
    {
        Id = model.Id;
        MobilePhone = model.MobilePhone;
        Password = model.Password;
        NikeName = model.NikeName;
        RealName = model.RealName;
        PasswordSalt = model.PasswordSalt;
        UserType = model.UserType;
        Status = model.Status;
        PositionName = model.PositionName;
        ProjectId = model.ProjectId;
        Description = model.Description;
        ClientId = model.ClientId;
        CreateBy = model.CreateBy;
        UpdateBy = model.UpdateBy;
        IsDelete = model.IsDelete;
        CreateTime = model.CreateTime;
        UpdateTime = model.UpdateTime;
        TenantId = model.TenantId;
        ActivationTime = model.ActivationTime;
        SchoolName = model.SchoolName;
    }
    #endregion
}
